home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9417 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 61 69 6e 2e |Path: ne|ws.rain.|
|00000010| 6f 72 67 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |org!usen|et.From:|
|00000020| 20 22 47 75 75 73 20 4c | 65 65 75 77 20 6a 72 2e | "Guus L|eeuw jr.|
|00000030| 22 20 3c 67 75 75 73 6c | 40 65 69 66 66 65 6c 2e |" <guusl|@eiffel.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2b 2b 0a 53 | comp.la|ng.c++.S|
|00000060| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 48 65 6c 70 |ubject: |Re: Help|
|00000070| 20 77 69 74 68 20 61 20 | 70 72 6f 67 72 61 6d 20 | with a |program |
|00000080| 50 4c 53 21 20 3a 29 0a | 44 61 74 65 3a 20 46 72 |PLS! :).|Date: Fr|
|00000090| 69 2c 20 30 31 20 4d 61 | 72 20 31 39 39 36 20 30 |i, 01 Ma|r 1996 0|
|000000a0| 39 3a 30 30 3a 31 37 20 | 2d 30 38 30 30 0a 4f 72 |9:00:17 |-0800.Or|
|000000b0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 49 6e 74 65 |ganizati|on: Inte|
|000000c0| 72 61 63 74 69 76 65 20 | 53 6f 66 74 77 61 72 65 |ractive |Software|
|000000d0| 20 45 6e 67 69 6e 65 65 | 72 69 6e 67 20 49 6e 63 | Enginee|ring Inc|
|000000e0| 2e 20 68 74 74 70 3a 2f | 2f 77 77 77 2e 65 69 66 |. http:/|/www.eif|
|000000f0| 66 65 6c 2e 63 6f 6d 2f | 0a 4d 65 73 73 61 67 65 |fel.com/|.Message|
|00000100| 2d 49 44 3a 20 3c 33 31 | 33 37 32 44 32 31 2e 42 |-ID: <31|372D21.B|
|00000110| 34 34 36 44 31 43 40 65 | 69 66 66 65 6c 2e 63 6f |446D1C@e|iffel.co|
|00000120| 6d 3e 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |m>.Refer|ences: <|
|00000130| 34 68 35 71 75 74 24 35 | 66 70 40 64 65 61 64 62 |4h5qut$5|fp@deadb|
|00000140| 69 72 64 2e 64 62 2e 65 | 72 61 75 2e 65 64 75 3e |ird.db.e|rau.edu>|
|00000150| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000160| 73 74 3a 20 40 6f 75 74 | 62 61 63 6b 2e 65 69 66 |st: @out|back.eif|
|00000170| 66 65 6c 2e 63 6f 6d 0a | 4d 69 6d 65 2d 56 65 72 |fel.com.|Mime-Ver|
|00000180| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|00000190| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|000001a0| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 75 73 2d 61 |in; char|set=us-a|
|000001b0| 73 63 69 69 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |scii.Con|tent-Tra|
|000001c0| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|000001d0| 37 62 69 74 0a 58 2d 4d | 61 69 6c 65 72 3a 20 4d |7bit.X-M|ailer: M|
|000001e0| 6f 7a 69 6c 6c 61 20 32 | 2e 30 20 28 58 31 31 3b |ozilla 2|.0 (X11;|
|000001f0| 20 49 3b 20 4c 69 6e 75 | 78 20 31 2e 32 2e 38 20 | I; Linu|x 1.2.8 |
|00000200| 69 35 38 36 29 0a 54 6f | 3a 20 4b 6f 6e 72 61 64 |i586).To|: Konrad|
|00000210| 20 4b 6f 63 68 61 6e 20 | 3c 6b 6f 63 68 61 6e 6b | Kochan |<kochank|
|00000220| 40 6e 65 77 73 2e 64 62 | 2e 65 72 61 75 2e 65 64 |@news.db|.erau.ed|
|00000230| 75 3e 0a 0a 4b 6f 6e 72 | 61 64 20 4b 6f 63 68 61 |u>..Konr|ad Kocha|
|00000240| 6e 20 77 72 6f 74 65 3a | 0a 3e 20 0a 3e 20 49 20 |n wrote:|.> .> I |
|00000250| 6e 65 65 64 20 68 65 6c | 70 20 77 69 74 68 20 74 |need hel|p with t|
|00000260| 68 69 73 20 70 72 6f 67 | 72 61 6d 3a 0a 3e 20 0a |his prog|ram:.> .|
|00000270| 3e 20 52 65 61 64 73 20 | 73 74 72 69 6e 67 73 20 |> Reads |strings |
|00000280| 66 72 6f 6d 20 66 69 6c | 65 20 57 4f 52 44 53 2e |from fil|e WORDS.|
|00000290| 49 4e 2c 20 77 6f 72 64 | 73 20 69 6e 20 73 74 72 |IN, word|s in str|
|000002a0| 69 6e 67 20 61 72 65 20 | 6c 6f 77 65 72 2f 75 70 |ing are |lower/up|
|000002b0| 70 65 72 20 63 61 70 73 | 0a 3e 20 73 65 6e 74 65 |per caps|.> sente|
|000002c0| 6e 63 65 73 20 73 65 70 | 65 72 61 74 65 64 20 62 |nces sep|erated b|
|000002d0| 79 20 63 6f 6d 6d 61 73 | 20 61 6e 64 20 70 65 72 |y commas| and per|
|000002e0| 69 6f 64 73 20 28 69 65 | 3a 20 4d 61 72 72 79 2c |iods (ie|: Marry,|
|000002f0| 20 68 61 64 20 61 20 6c | 69 74 74 6c 65 2c 20 6c | had a l|ittle, l|
|00000300| 61 6d 62 2e 20 44 4f 48 | 29 0a 3e 20 0a 3e 20 49 |amb. DOH|).> .> I|
|00000310| 74 20 68 61 73 20 74 6f | 20 73 6f 72 74 20 74 68 |t has to| sort th|
|00000320| 65 20 61 72 72 61 79 20 | 61 6e 64 20 70 72 69 6e |e array |and prin|
|00000330| 74 20 69 74 20 74 6f 20 | 66 69 6c 65 20 57 4f 52 |t it to |file WOR|
|00000340| 44 53 2e 4f 55 54 2e 2e | 0a 3e 20 0a 3e 20 4f 6b |DS.OUT..|.> .> Ok|
|00000350| 2c 20 49 20 67 6f 74 20 | 69 74 20 41 4c 4d 4f 53 |, I got |it ALMOS|
|00000360| 54 20 77 6f 72 6b 69 6e | 67 2e 2e 20 69 74 20 73 |T workin|g.. it s|
|00000370| 6f 72 74 73 20 65 76 65 | 72 79 74 68 69 6e 67 20 |orts eve|rything |
|00000380| 61 63 63 65 70 74 20 74 | 68 61 74 20 69 74 20 70 |accept t|hat it p|
|00000390| 75 74 73 0a 3e 20 43 41 | 50 53 20 77 6f 72 64 73 |uts.> CA|PS words|
|000003a0| 20 62 34 20 6c 6f 77 65 | 72 20 63 61 73 65 20 28 | b4 lowe|r case (|
|000003b0| 44 75 70 61 20 62 65 66 | 6f 72 65 20 64 65 61 74 |Dupa bef|ore deat|
|000003c0| 68 2c 20 65 74 63 20 65 | 74 63 2e 2e 29 0a 0a 5b |h, etc e|tc..)..[|
|000003d0| 62 75 6e 63 68 20 6f 66 | 20 63 6f 64 65 20 73 6e |bunch of| code sn|
|000003e0| 69 70 70 65 64 5d 0a 0a | 4f 66 20 63 6f 75 72 73 |ipped]..|Of cours|
|000003f0| 65 20 69 74 20 64 6f 65 | 73 20 74 68 69 73 2e 20 |e it doe|s this. |
|00000400| 57 68 65 6e 20 79 6f 75 | 20 73 6f 72 74 20 74 77 |When you| sort tw|
|00000410| 6f 20 41 53 43 49 49 20 | 73 74 72 69 6e 67 73 2c |o ASCII |strings,|
|00000420| 20 22 41 61 61 61 22 20 | 77 69 6c 6c 20 62 65 20 | "Aaaa" |will be |
|00000430| 73 6d 61 6c 6c 65 72 20 | 74 68 61 6e 20 22 61 61 |smaller |than "aa|
|00000440| 61 61 22 2c 20 62 65 63 | 61 75 73 65 20 74 68 65 |aa", bec|ause the|
|00000450| 0a 41 53 43 49 49 20 63 | 6f 64 65 20 66 6f 72 20 |.ASCII c|ode for |
|00000460| 27 41 27 20 69 73 20 36 | 35 20 61 6e 64 20 66 6f |'A' is 6|5 and fo|
|00000470| 72 20 27 61 27 20 69 74 | 20 69 73 20 39 37 2e 0a |r 'a' it| is 97..|
|00000480| 0a 57 68 61 74 20 79 6f | 75 20 63 6f 75 6c 64 20 |.What yo|u could |
|00000490| 64 6f 20 69 73 2c 20 63 | 6f 6e 76 65 72 74 20 61 |do is, c|onvert a|
|000004a0| 6e 79 20 73 74 72 69 6e | 67 20 74 65 6d 70 6f 72 |ny strin|g tempor|
|000004b0| 61 72 69 6c 79 20 69 6e | 74 6f 20 6c 6f 77 65 72 |arily in|to lower|
|000004c0| 20 63 61 73 65 2e 20 54 | 68 65 6e 20 73 6f 72 74 | case. T|hen sort|
|000004d0| 20 74 68 61 74 20 61 72 | 72 61 79 20 61 6e 64 20 | that ar|ray and |
|000004e0| 74 68 65 6e 20 66 69 6e | 64 0a 74 68 65 20 63 6f |then fin|d.the co|
|000004f0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 6f 72 69 67 |rrespond|ing orig|
|00000500| 69 6e 61 6c 20 6f 6e 65 | 20 66 6f 72 20 6f 75 74 |inal one| for out|
|00000510| 70 75 74 2e 0a 0a 52 65 | 67 61 72 64 73 2c 0a 09 |put...Re|gards,..|
|00000520| 47 75 75 73 0a | |Guus. | |
+--------+-------------------------+-------------------------+--------+--------+